package yf.mall.vo.down;


import lombok.Data;
import java.util.Date;
import com.alibaba.excel.annotation.*;
import java.io.Serializable;


import java.math.BigDecimal;

import yf.mall.entity.LotteryRecordEntity;
import yf.mall.vo.LotteryRecordVo;

                            
/**
 * 抽奖记录实体
 * 表名 lottery_record
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Thu Aug 20 11:07:03 CST 2020
 */
@Data
public class LotteryRecordDown implements Serializable {
    @ExcelIgnore
    private static final long serialVersionUID = 1L;

                        //
            @ExcelProperty("")
            private Long id;
        
                        //用户ID
            @ExcelProperty("用户ID")
            private Long userId;
        
                        //活动ID
            @ExcelProperty("活动ID")
            private Long actId;
        
                        //奖品ID
            @ExcelProperty("奖品ID")
            private Long goodsId;
        
                        //奖品名
            @ExcelProperty("奖品名")
            private String goodsName;
        
                        //消耗数量
            @ExcelProperty("消耗数量")
            private BigDecimal amount;
        
                        //抽奖时间
            @ExcelProperty("抽奖时间")
            private Date time;
        
    
    public LotteryRecordDown() {

    }

    public LotteryRecordDown(LotteryRecordVo vo) {
        LotteryRecordEntity entity = vo.getEntity();
                                    this.setId(entity.getId());
            
                                    this.setUserId(entity.getUserId());
            
                                    this.setActId(entity.getActId());
            
                                    this.setGoodsId(entity.getGoodsId());
            
                                    this.setGoodsName(entity.getGoodsName());
            
                                    this.setAmount(entity.getAmount());
            
                                    this.setTime(entity.getTime());
            
            }


}
